﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DislocationHistory.aspx.cs" Inherits="DigDes.DS2012.WebUI.DislocationHistory" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style8
        {
            width: 250px;
        }
    </style>
</head>
<body>
        <form id="mainForm" runat="server">
        <table style="width:100%;">
            <tr>
                <td class="style8">  
                    <asp:Label ID="Label_1" runat="server" Text="Номер вагона"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label_2" runat="server" Text="Операция"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label_3" runat="server" Text="Станция операции"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label_4" runat="server" Text="Станция отправления"></asp:Label>
                </td>
                <td class="style8">
                    <asp:Label ID="Label_5" runat="server" Text="Станция прибытия"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style8">
                    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                </td>
                <td class="style8">
                    <asp:PlaceHolder ID="PlaceHolder2" runat="server"></asp:PlaceHolder>
                </td>
                <td class="style8">
                    <asp:PlaceHolder ID="PlaceHolder3" runat="server"></asp:PlaceHolder>
                </td>
                <td class="style8">
                    <asp:PlaceHolder ID="PlaceHolder4" runat="server"></asp:PlaceHolder>
                </td>
                <td class="style8">
                    <asp:PlaceHolder ID="PlaceHolder5" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
        </table>
        <asp:Button ID="Filt" runat="server" Text="Фильтровать" onclick="Filt_Click" />
        <div id="gridViev">
            <asp:GridView ID="gvDislocationHistory" runat="server" 
                DataSourceID="dsDislocationHistory" AllowPaging="True" PageSize="15" 
                AutoGenerateColumns="False">
                <Columns>
                    <asp:BoundField DataField="CarNumber" HeaderText="Номер вагона" />
                    <asp:BoundField DataField="OperationDate" HeaderText="Дата операции" />
                    <asp:BoundField DataField="StationOfOperation" HeaderText="Станция операции" />
                    <asp:BoundField DataField="Operation" HeaderText="Операция" />
                    <asp:BoundField DataField="DepartureStation" HeaderText="Станция отправления" />
                    <asp:BoundField DataField="StartDate" HeaderText="Дата отправления" />
                    <asp:BoundField DataField="ArrivalStation" HeaderText="Станция назначения" />
                    <asp:BoundField DataField="TrainIndex" HeaderText="Индекс поезда" />
                    <asp:BoundField DataField="TrainNumber" HeaderText="Номер поезда" />
                </Columns>
            </asp:GridView>

            <asp:ObjectDataSource ID="dsDislocationHistory" runat="server"
                TypeName="DigDes.DS2012.BusinessLogic.DislocationHistoryManager" SelectMethod="GetDislocationHistory">
            </asp:ObjectDataSource>
        </div>
        </form>
        </body>
</html>
